Find the value of second degree polynomial function